package soen6441;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

class SlocCounter {
    static final String PATHNAME
            = ".\\src\\soen6441\\Comments.java";

    public static void main(String[] args) throws IOException {
        // apache common IO
        String fileContents =
                FileUtils.readFileToString(new File(PATHNAME));
        fileContents = Comments.remove(fileContents);
        System.out.println(Slocs.count(fileContents));
    }
}
